﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing {

    public class WindowOrderFocusTraversalPolicy extends ContainerOrderFocusTraversalPolicy {

        override public function getDefaultComponent(_arg1:Container):Component{
            var _local2:JWindow;
            var _local3:Container;
            var _local4:Component;
            if ((_arg1 is JWindow)){
                _local2 = (_arg1 as JWindow);
                _local3 = _local2.getContentPane();
                if (((((_local3.isShowing()) && (_local3.isVisible()))) && (_local3.isFocusable()))){
                    return (_local3);
                };
                _local4 = getFirstComponent(_local3);
                if (_local4 == null){
                    return (super.getDefaultComponent(_arg1));
                };
                return (_local4);
            };
            return (super.getDefaultComponent(_arg1));
        }

    }
}//package org.aswing 
